package com.cloud.handlerWritingOpenfeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {
    @Autowired
    private HandWritingInterface interface1;

    //访问 127.0.0.1/show1，会调用/show
    @RequestMapping("/show1")
    public void show1() {
        interface1.show();
    }

    @RequestMapping("/show")
    public String show() {
        return "11";
    }
}
